﻿@model IEnumerable<ManageReportVer1.Models.Role>

@{
    ViewBag.Title = "ViewRole";
    Layout = "~/Views/Shared/_LayoutSecurityGuard.cshtml";
}
<div id="breadcrumb">
    @Html.ActionLink("Quản lý người dùng", "Index", "Account") >
    Danh sách phân quyền
</div>
<h2>ViewRole</h2>

<p class="p1">
    @Html.ActionLink("Tạo Phân quyền", "AddRole")
</p>
<div class="table_wrapper">
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.RoleName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Description)
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.RoleName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Description)
                </td>
                <td>
                    @Html.ActionLink("Edit", "UpdateRole", new { id = item.RoleId }) |
            @Html.ActionLink("Details", "Details", new { id = item.RoleId }) |
            @Html.ActionLink("Delete", "DeleteRole", new { id = item.RoleId })
                </td>
            </tr>
        }
    </table>
</div>
<div class="backToView">
    @Html.ActionLink("Quay lại danh sách phân quyền", "ViewRole")
</div>